package com.oig.sys.workflow.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Schema
@Data
public class AutoExeLogDto {

	@Schema(description = "规则执行记录id")
	private Integer id;
	@Schema(description = "规则id")
	private Integer ruleId;
	@Schema(description = "规则分支操作id")
	private Integer optId;
	@Schema(description = "执行时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date executeTime;
	@Schema(description = "规则执行结果")
	private String executeResult;
	@Schema(description = "规则对应数据类型")
	private String relationType;
	@Schema(description = "规则对应数据id")
	private String relationId;

	@Schema(description = "规则配置")
	private String ruleJson;
	@Schema(description = "操作条件json")
	private String optJson;

	@Schema(description = "所属租户id")
	private Integer tenantId;
	@Schema(description = "所属租户名称")
	private String tenantName;
}
